package com.ruoyi.common.entity.wxpay;

import lombok.extern.java.Log;

/**
 * Created by zhouxinwen
 * DateTime: 2019-04-13 15:58
 * Description:
 */
@Log
public class IWXPayDomainImpl implements IWXPayDomain {
    @Override
    public void report(String domain, long elapsedTimeMillis, Exception ex) {
        log.warning(domain + "出现异常:" + ex.getMessage() + "耗时:" + elapsedTimeMillis + "秒");
    }

    @Override
    public DomainInfo getDomain(WXPayConfig config) {
        return new DomainInfo(config.getDomain(), config.getPrimaryDomain());
    }
}
